package com.donger.web.admin.controller;

import com.donger.common.core.utils.Res;
import com.donger.common.core.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @GetMapping("/error")
    public Result error(){
        return Res.error();
    }

    @GetMapping("/login")
    public Result login(){

        String s = "这是登陆界面";
        return Res.ok(s);
    }
}
